package com.sheep.api.hbase.impl;

import com.sheep.api.bean.ADSBBean;
import com.sheep.api.hbase.HbaseCommonService;
import com.sheep.api.hbase.dao.HbaseCommonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 16-4-25
 * Time: 下午2:50
 * To change this template use File | Settings | File Templates.
 */
@org.springframework.stereotype.Service
@com.alibaba.dubbo.config.annotation.Service
public class ImplHbaseCommonService implements HbaseCommonService {
    @Autowired
    @Qualifier("hbaseCommonDaoImpl")
    private HbaseCommonDao dao;

    @Override
    public List<ADSBBean> findAll() {
        return dao.findAll();  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public ADSBBean save(long time, String an, String fi, double lat, double lon, double vec, double cas) {
        return dao.save(time, an, fi, lat, lon, vec, cas);  //To change body of implemented methods use File | Settings | File Templates.
    }
}
